package com.sun.pojo.vo;

import com.sun.pojo.entity.UserRole;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author SunRui
 * @description 返回前端的User数据
 * @date 2024/10/5 16:03
 */
public class UserVo implements Serializable {
    @Serial
    private static final long serialVersionUID = -3068912720844699404L;
    private int id;// 用户Id
    private String username; // 用户名称
    private int gender;//用户性别 1：女 2：男
    private String rolename; // 权限名称

    @Override
    public String toString() {
        return "UserVo{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", gender=" + gender +
                ", rolename='" + rolename + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getGender() {
        return gender;
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getRolename() {
        return rolename;
    }

    public void setRolename(String rolename) {
        this.rolename = rolename;
    }
}
